package com.wwwarehouse.contract.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by zhenwang.xiang on 2017/11/8.
 * Description:
 */

public class BuyOrderDetialBean implements Parcelable {

    /**
     * address : 中国浙江省杭州市江干区下沙街道
     * aliPay : 990.0
     * bank : 0.0
     * contractId : D52123204336636000
     * contractTime : 2017-10-24 14:21:34
     * demanderName : 网仓科技
     * itemCount : 30
     * mobilePhone : 18268258367
     * offline : 0.0
     * orderPay : 990.0
     * periodPay : 1980.0
     * receiveName : 程伟
     * skuCount : 2
     * supplierName : 网仓科技
     * totalPrice : 2970.0
     * wechatPay : 0.0
     */

    private String address;
    private double aliPay;
    private double bank;
    private String contractId;
    private String contractTime;
    private String demanderName;
    private String itemCount;
    private String mobilePhone;
    private double offline;
    private String orderPay;
    private String periodPay;
    private String receiveName;
    private String skuCount;
    private String supplierName;
    private String totalPrice;
    private double wechatPay;
    private String demanderLogoUrl;
    private String supplierLogoUrl;

    public String getDemanderLogoUrl() {
        return demanderLogoUrl;
    }

    public void setDemanderLogoUrl(String demanderLogoUrl) {
        this.demanderLogoUrl = demanderLogoUrl;
    }

    public String getSupplierLogoUrl() {
        return supplierLogoUrl;
    }

    public void setSupplierLogoUrl(String supplierLogoUrl) {
        this.supplierLogoUrl = supplierLogoUrl;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public void setAliPay(double aliPay) {
        this.aliPay = aliPay;
    }

    public void setBank(double bank) {
        this.bank = bank;
    }

    public void setContractId(String contractId) {
        this.contractId = contractId;
    }

    public void setContractTime(String contractTime) {
        this.contractTime = contractTime;
    }

    public void setDemanderName(String demanderName) {
        this.demanderName = demanderName;
    }

    public void setItemCount(String itemCount) {
        this.itemCount = itemCount;
    }

    public void setMobilePhone(String mobilePhone) {
        this.mobilePhone = mobilePhone;
    }

    public void setOffline(double offline) {
        this.offline = offline;
    }

    public void setOrderPay(String orderPay) {
        this.orderPay = orderPay;
    }

    public void setPeriodPay(String periodPay) {
        this.periodPay = periodPay;
    }

    public void setReceiveName(String receiveName) {
        this.receiveName = receiveName;
    }

    public void setSkuCount(String skuCount) {
        this.skuCount = skuCount;
    }

    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }

    public void setTotalPrice(String totalPrice) {
        this.totalPrice = totalPrice;
    }

    public void setWechatPay(double wechatPay) {
        this.wechatPay = wechatPay;
    }

    public String getAddress() {
        return address;
    }

    public double getAliPay() {
        return aliPay;
    }

    public double getBank() {
        return bank;
    }

    public String getContractId() {
        return contractId;
    }

    public String getContractTime() {
        return contractTime;
    }

    public String getDemanderName() {
        return demanderName;
    }

    public String getItemCount() {
        return itemCount;
    }

    public String getMobilePhone() {
        return mobilePhone;
    }

    public double getOffline() {
        return offline;
    }

    public String getOrderPay() {
        return orderPay;
    }

    public String getPeriodPay() {
        return periodPay;
    }

    public String getReceiveName() {
        return receiveName;
    }

    public String getSkuCount() {
        return skuCount;
    }

    public String getSupplierName() {
        return supplierName;
    }

    public String getTotalPrice() {
        return totalPrice;
    }

    public double getWechatPay() {
        return wechatPay;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.address);
        dest.writeDouble(this.aliPay);
        dest.writeDouble(this.bank);
        dest.writeString(this.contractId);
        dest.writeString(this.contractTime);
        dest.writeString(this.demanderName);
        dest.writeString(this.itemCount);
        dest.writeString(this.mobilePhone);
        dest.writeDouble(this.offline);
        dest.writeString(this.orderPay);
        dest.writeString(this.periodPay);
        dest.writeString(this.receiveName);
        dest.writeString(this.skuCount);
        dest.writeString(this.supplierName);
        dest.writeString(this.totalPrice);
        dest.writeDouble(this.wechatPay);
        dest.writeString(this.demanderLogoUrl);
        dest.writeString(this.supplierLogoUrl);
    }

    public BuyOrderDetialBean() {
    }

    protected BuyOrderDetialBean(Parcel in) {
        this.address = in.readString();
        this.aliPay = in.readDouble();
        this.bank = in.readDouble();
        this.contractId = in.readString();
        this.contractTime = in.readString();
        this.demanderName = in.readString();
        this.itemCount = in.readString();
        this.mobilePhone = in.readString();
        this.offline = in.readDouble();
        this.orderPay = in.readString();
        this.periodPay = in.readString();
        this.receiveName = in.readString();
        this.skuCount = in.readString();
        this.supplierName = in.readString();
        this.totalPrice = in.readString();
        this.wechatPay = in.readDouble();
        this.demanderLogoUrl = in.readString();
        this.supplierLogoUrl = in.readString();
    }

    public static final Parcelable.Creator<BuyOrderDetialBean> CREATOR = new Parcelable.Creator<BuyOrderDetialBean>() {
        @Override
        public BuyOrderDetialBean createFromParcel(Parcel source) {
            return new BuyOrderDetialBean(source);
        }

        @Override
        public BuyOrderDetialBean[] newArray(int size) {
            return new BuyOrderDetialBean[size];
        }
    };
}
